package org.example.Day12;

public class Test1Class {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1 = Student.class;
        System.out.println(c1.getName());//获取全名
        System.out.println(c1.getSimpleName());//简单名称]

        Class c2 = Class.forName("com.itheima.d2_reflect.Student");
        System.out.println(c1==c2);

        Student s = new Student();
        Class c3 = s.getClass();
        System.out.println(c2==c3);
    }
}
